import { createApp } from 'vue'
//@ts-ignore
import App from './App.vue'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import gloablComponent from './components/index';
//引入模板的全局的样式
import './styles/index.scss'
import router from './router'
import pinia  from  './store'



// 创建app
const app = createApp(App)

app.use(gloablComponent);
app.use(router);
app.use(pinia);
// 使用element-ui
app.use(ElementPlus, {
    locale: zhCn
})
// 挂载
app.mount('#app');
